﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:conv="clr-namespace:mmUI.Converters"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" mc:Ignorable="d" x:Class="mmUI.Windows.MainWindow"
        Title="Movie Manager by deely" Height="400" SizeToContent="Width" Loaded="WindowLoaded" Closing="Window_Closing" Closed="WindowClosed" ResizeMode="CanMinimize" Icon="/mmUI;component/icons/clapperboard.ico" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <conv:SeasonCountToSeasonList x:Key="SeasonConv" />
        <conv:OneBased2ZeroBased x:Key="One2Zero" />
        <conv:ShortDate x:Key="ShortDateConv" />
        <conv:StringNotEmpty x:Key="StringNotEmptyConv" />
        <conv:Bool2Visibility x:Key="Bool2Visibility" />
        <conv:NotNull x:Key="NotNullConv" />
        <conv:MoreThanZeroVisibility x:Key="MoreVisiblity" />

        <Storyboard x:Key="loadSlide"  
                    Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)"
                    AccelerationRatio=".4"
                    DecelerationRatio=".4">
            <DoubleAnimation Storyboard.TargetName="_mMainContent" Duration="0:0:0.6" From="-400" To="0"/>
            <DoubleAnimation Storyboard.TargetName="_mLoading" Duration="0:0:0.6" From="0" To="400"/>
        </Storyboard>

        <Storyboard x:Key="saveSlide"  
                    Storyboard.TargetProperty="RenderTransform.(TranslateTransform.Y)"
                    AccelerationRatio=".4"
                    DecelerationRatio=".4">
            <DoubleAnimation Storyboard.TargetName="_mMainContent" Duration="0:0:0.6" From="0" To="-400"/>
            <DoubleAnimation Storyboard.TargetName="_mLoading" Duration="0:0:0.6" From="400" To="0"/>
        </Storyboard>

        <Storyboard x:Key="slideLeftToRight"  
                    Storyboard.TargetProperty="RenderTransform.(TranslateTransform.X)"
                    AccelerationRatio=".4"
                    DecelerationRatio=".4">
            <DoubleAnimation Storyboard.TargetName="view3" Duration="0:0:0.6" From="300" To="0"/>
            <DoubleAnimation Storyboard.TargetName="view2" Duration="0:0:0.6" From="300" To="0"/>
            <DoubleAnimation Storyboard.TargetName="view1" Duration="0:0:0.6" From="300" To="0"/>

            <DoubleAnimation Storyboard.TargetName="viewS" Duration="0:0:0.6" From="600" To="0"/>
            <DoubleAnimation Storyboard.TargetName="viewT" Duration="0:0:0.6" From="600" To="0"/>
        </Storyboard>

        <Storyboard x:Key="slideRightToLeft" 
                    Storyboard.TargetProperty="RenderTransform.(TranslateTransform.X)"
                    AccelerationRatio=".4"
                    DecelerationRatio=".4">
            <DoubleAnimation Storyboard.TargetName="view3" Duration="0:0:0.6" From="0" To="300"/>
            <DoubleAnimation Storyboard.TargetName="view2" Duration="0:0:0.6" From="0" To="300"/>
            <DoubleAnimation Storyboard.TargetName="view1" Duration="0:0:0.6" From="0" To="300"/>

            <DoubleAnimation Storyboard.TargetName="viewS" Duration="0:0:0.6" From="0" To="600"/>
            <DoubleAnimation Storyboard.TargetName="viewT" Duration="0:0:0.6" From="0" To="600"/>
        </Storyboard>

        <Storyboard x:Key="slideToSearch" 
                    Storyboard.TargetProperty="RenderTransform.(TranslateTransform.X)"
                    AccelerationRatio=".4"
                    DecelerationRatio=".4">
            <DoubleAnimation Storyboard.TargetName="view0" Duration="0:0:0.6" From="300" To="900"/>
            <DoubleAnimation Storyboard.TargetName="view00" Duration="0:0:0.6" From="300" To="900"/>
            <DoubleAnimation Storyboard.TargetName="view2" Duration="0:0:0.6" From="300" To="900"/>
            <DoubleAnimation Storyboard.TargetName="view1" Duration="0:0:0.6" From="300" To="900"/>
        </Storyboard>

        <Storyboard x:Key="slideFromSearch" 
                    Storyboard.TargetProperty="RenderTransform.(TranslateTransform.X)"
                    AccelerationRatio=".4"
                    DecelerationRatio=".4">
            <DoubleAnimation Storyboard.TargetName="view0" Duration="0:0:0.6" From="900" To="300"/>
            <DoubleAnimation Storyboard.TargetName="view00" Duration="0:0:0.6" From="900" To="300"/>
            <DoubleAnimation Storyboard.TargetName="view2" Duration="0:0:0.6" From="900" To="300"/>
            <DoubleAnimation Storyboard.TargetName="view1" Duration="0:0:0.6" From="900" To="300"/>
        </Storyboard>
        <Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
        	<Setter Property="Background" Value="Transparent"/>
        	<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        	<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        	<Setter Property="Padding" Value="2,0,0,0"/>
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="{x:Type ListBoxItem}">
        				<Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true" BorderBrush="{x:Null}">
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="CommonStates">
        							<VisualState x:Name="Normal"/>
        							<VisualState x:Name="MouseOver"/>
        							<VisualState x:Name="Disabled"/>
        						</VisualStateGroup>
        						<VisualStateGroup x:Name="SelectionStates">
        							<VisualState x:Name="Unselected"/>
        							<VisualState x:Name="Selected"/>
        							<VisualState x:Name="SelectedUnfocused"/>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
        				</Border>
        				<ControlTemplate.Triggers>
        					<Trigger Property="IsSelected" Value="true">
        						<Setter Property="Foreground" Value="Blue"/>
        					</Trigger>
        					<MultiTrigger>
        						<MultiTrigger.Conditions>
        							<Condition Property="IsSelected" Value="true"/>
        							<Condition Property="Selector.IsSelectionActive" Value="false"/>
        						</MultiTrigger.Conditions>
        						<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
        						<Setter Property="Foreground" Value="Navy"/>
        					</MultiTrigger>
        					<Trigger Property="IsEnabled" Value="false">
        						<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
        					</Trigger>
        				</ControlTemplate.Triggers>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
    	<SolidColorBrush x:Key="CheckBoxFillNormal" Color="#F4F4F4"/>
    	<SolidColorBrush x:Key="CheckBoxStroke" Color="#8E8F8F"/>
    	<Style x:Key="EmptyCheckBoxFocusVisual">
    		<Setter Property="Control.Template">
    			<Setter.Value>
    				<ControlTemplate>
    					<Rectangle Margin="1" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Style x:Key="CheckRadioFocusVisual">
    		<Setter Property="Control.Template">
    			<Setter.Value>
    				<ControlTemplate>
    					<Rectangle Margin="14,0,0,0" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Style x:Key="CheckBoxStyle1" TargetType="{x:Type CheckBox}">
    		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    		<Setter Property="Background" Value="{StaticResource CheckBoxFillNormal}"/>
    		<Setter Property="BorderBrush" Value="{StaticResource CheckBoxStroke}"/>
    		<Setter Property="BorderThickness" Value="1"/>
    		<Setter Property="FocusVisualStyle" Value="{StaticResource EmptyCheckBoxFocusVisual}"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type CheckBox}">
    					<BulletDecorator Background="Transparent" SnapsToDevicePixels="true">
    						<BulletDecorator.Bullet>
    							<Microsoft_Windows_Themes:BulletChrome BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" IsChecked="{TemplateBinding IsChecked}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}"/>
    						</BulletDecorator.Bullet>
    						<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
    					</BulletDecorator>
    					<ControlTemplate.Triggers>
    						<Trigger Property="HasContent" Value="true">
    							<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}"/>
    							<Setter Property="Padding" Value="4,0,0,0"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Style x:Key="ButtonFocusVisual">
    		<Setter Property="Control.Template">
    			<Setter.Value>
    				<ControlTemplate>
    					<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
    		<GradientStop Color="#F3F3F3" Offset="0"/>
    		<GradientStop Color="#EBEBEB" Offset="0.5"/>
    		<GradientStop Color="#DDDDDD" Offset="0.5"/>
    		<GradientStop Color="#CDCDCD" Offset="1"/>
    	</LinearGradientBrush>
    	<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
    	<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
    		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
    		<Setter Property="BorderThickness" Value="1"/>
    		<Setter Property="HorizontalContentAlignment" Value="Center"/>
    		<Setter Property="VerticalContentAlignment" Value="Center"/>
    		<Setter Property="Padding" Value="1"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Button}">
    					<Microsoft_Windows_Themes:ButtonChrome x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderDefaulted="{TemplateBinding IsDefaulted}" SnapsToDevicePixels="true">
    						<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
    					</Microsoft_Windows_Themes:ButtonChrome>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsKeyboardFocused" Value="true">
    							<Setter Property="RenderDefaulted" TargetName="Chrome" Value="true"/>
    						</Trigger>
    						<Trigger Property="ToggleButton.IsChecked" Value="true">
    							<Setter Property="RenderPressed" TargetName="Chrome" Value="true"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Foreground" Value="#ADADAD"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="Background">
    			<Setter.Value>
    				<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
    					<GradientStop Color="#FFF3F3F3" Offset="0"/>
    					<GradientStop Color="#FFEBEBEB" Offset="0.787"/>
    					<GradientStop Color="#FFDDDDDD" Offset="0.9"/>
    					<GradientStop Color="#FFCDCDCD" Offset="1"/>
    				</LinearGradientBrush>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="BorderBrush" Value="#FFD4D4D4"/>
    		<Setter Property="Foreground" Value="#FF353535"/>
    	</Style>
    	<Style x:Key="ComboBoxFocusVisual">
    		<Setter Property="Control.Template">
    			<Setter.Value>
    				<ControlTemplate>
    					<Rectangle Margin="4,4,21,4" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>
    	<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="IsTabStop" Value="false"/>
    		<Setter Property="Focusable" Value="false"/>
    		<Setter Property="ClickMode" Value="Press"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ToggleButton}">
    					<Microsoft_Windows_Themes:ButtonChrome x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" SnapsToDevicePixels="true">
    						<Grid HorizontalAlignment="Right" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
    							<Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="Black" HorizontalAlignment="Center" Margin="3,1,0,0" VerticalAlignment="Center"/>
    						</Grid>
    					</Microsoft_Windows_Themes:ButtonChrome>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsChecked" Value="true">
    							<Setter Property="RenderPressed" TargetName="Chrome" Value="true"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<LinearGradientBrush x:Key="TextBoxBorder" EndPoint="0,20" MappingMode="Absolute" StartPoint="0,0">
    		<GradientStop Color="#ABADB3" Offset="0.05"/>
    		<GradientStop Color="#E2E3EA" Offset="0.07"/>
    		<GradientStop Color="#E3E9EF" Offset="1"/>
    	</LinearGradientBrush>
    	<Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="AllowDrop" Value="true"/>
    		<Setter Property="MinWidth" Value="0"/>
    		<Setter Property="MinHeight" Value="0"/>
    		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    		<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
    		<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type TextBox}">
    					<ScrollViewer x:Name="PART_ContentHost" Background="Transparent" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
    		<Setter Property="OverridesDefaultStyle" Value="true"/>
    		<Setter Property="IsTabStop" Value="false"/>
    		<Setter Property="Focusable" Value="false"/>
    		<Setter Property="ClickMode" Value="Press"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ToggleButton}">
    					<Microsoft_Windows_Themes:ButtonChrome x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RoundCorners="false" SnapsToDevicePixels="true" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
    						<Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}" Fill="Black" HorizontalAlignment="Center" Margin="0,1,0,0" VerticalAlignment="Center"/>
    					</Microsoft_Windows_Themes:ButtonChrome>
    					<ControlTemplate.Triggers>
    						<Trigger Property="IsChecked" Value="true">
    							<Setter Property="RenderPressed" TargetName="Chrome" Value="true"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Fill" TargetName="Arrow" Value="#AFAFAF"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
    		<Grid x:Name="Placement" SnapsToDevicePixels="true">
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="*"/>
    				<ColumnDefinition Width="Auto"/>
    			</Grid.ColumnDefinitions>
    			<Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom">
    				<Microsoft_Windows_Themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{Binding ActualWidth, ElementName=Placement}">
    					<Border x:Name="DropDownBorder" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
    						<ScrollViewer x:Name="DropDownScrollViewer">
    							<Grid RenderOptions.ClearTypeHint="Enabled">
    								<Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
    									<Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=DropDownBorder}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
    								</Canvas>
    								<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
    							</Grid>
    						</ScrollViewer>
    					</Border>
    				</Microsoft_Windows_Themes:SystemDropShadowChrome>
    			</Popup>
    			<Microsoft_Windows_Themes:ListBoxChrome x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"/>
    			<TextBox x:Name="PART_EditableTextBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}" Margin="{TemplateBinding Padding}" Style="{StaticResource ComboBoxEditableTextBox}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
    			<ToggleButton Grid.Column="1" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
    		</Grid>
    		<ControlTemplate.Triggers>
    			<Trigger Property="IsKeyboardFocusWithin" Value="true">
    				<Setter Property="Foreground" Value="Black"/>
    			</Trigger>
    			<Trigger Property="IsDropDownOpen" Value="true">
    				<Setter Property="RenderFocused" TargetName="Border" Value="true"/>
    			</Trigger>
    			<Trigger Property="HasItems" Value="false">
    				<Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
    			</Trigger>
    			<Trigger Property="IsEnabled" Value="false">
    				<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    				<Setter Property="Background" Value="#FFF4F4F4"/>
    			</Trigger>
    			<Trigger Property="IsGrouping" Value="true">
    				<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
    			</Trigger>
    			<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
    				<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
    				<Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
    			</Trigger>
    			<Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
    				<Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
    				<Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
    			</Trigger>
    		</ControlTemplate.Triggers>
    	</ControlTemplate>
    	<Style x:Key="ComboBoxStyle1" TargetType="{x:Type ComboBox}">
    		<Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}"/>
    		<Setter Property="BorderThickness" Value="1"/>
    		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
    		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
    		<Setter Property="Padding" Value="4,3"/>
    		<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
    		<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
    		<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ComboBox}">
    					<Grid x:Name="MainGrid" SnapsToDevicePixels="true">
    						<Grid.ColumnDefinitions>
    							<ColumnDefinition Width="*"/>
    							<ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
    						</Grid.ColumnDefinitions>
    						<Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Margin="1" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom">
    							<Microsoft_Windows_Themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{Binding ActualWidth, ElementName=MainGrid}">
    								<Border x:Name="DropDownBorder" BorderThickness="1" BorderBrush="#FFEFEFE3" Background="#FFEFF0E3">
    									<ScrollViewer x:Name="DropDownScrollViewer">
    										<Grid RenderOptions.ClearTypeHint="Enabled">
    											<Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
    												<Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=DropDownBorder}" Height="{Binding ActualHeight, ElementName=DropDownBorder}" Width="{Binding ActualWidth, ElementName=DropDownBorder}"/>
    											</Canvas>
    											<ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
    										</Grid>
    									</ScrollViewer>
    								</Border>
    							</Microsoft_Windows_Themes:SystemDropShadowChrome>
    						</Popup>
    						<ToggleButton BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource ComboBoxReadonlyToggleButton}" Foreground="#FF505050"/>
    						<ContentPresenter ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Content="{TemplateBinding SelectionBoxItem}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="false" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
    					</Grid>
    					<ControlTemplate.Triggers>
    						<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
    							<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
    							<Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
    						</Trigger>
    						<Trigger Property="HasItems" Value="false">
    							<Setter Property="Height" TargetName="DropDownBorder" Value="95"/>
    						</Trigger>
    						<Trigger Property="IsEnabled" Value="false">
    							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
    							<Setter Property="Background" Value="#FFF4F4F4"/>
    						</Trigger>
    						<Trigger Property="IsGrouping" Value="true">
    							<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
    						</Trigger>
    						<Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
    							<Setter Property="Canvas.Top" TargetName="OpaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
    							<Setter Property="Canvas.Left" TargetName="OpaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
    						</Trigger>
    					</ControlTemplate.Triggers>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="Background">
    			<Setter.Value>
    				<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
    					<GradientStop Color="#FFF3F3F3" Offset="0"/>
    					<GradientStop Color="#FFEBEBEB" Offset="0.813"/>
    					<GradientStop Color="#FFDDDDDD" Offset="0.909"/>
    					<GradientStop Color="#FFCDCDCD" Offset="1"/>
    				</LinearGradientBrush>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="BorderBrush" Value="#FFD4D4D4"/>
    		<Setter Property="Foreground" Value="#FF1D1D1D"/>
    		<Style.Triggers>
    			<Trigger Property="IsEditable" Value="true">
    				<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}"/>
    				<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
    				<Setter Property="IsTabStop" Value="false"/>
    				<Setter Property="Padding" Value="3"/>
    				<Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}"/>
    			</Trigger>
    		</Style.Triggers>
    	</Style>
    </Window.Resources>
    <Grid>
        <Border x:Name="_mMainContent" Width="600" Margin="0,0,0,0">
            <Border.RenderTransform>
                <TranslateTransform Y="-400" />
            </Border.RenderTransform>
            <Grid x:Name="_mGrid" Width="600">
                <Grid.RowDefinitions>
                    <RowDefinition Height="25" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="25" />
                </Grid.RowDefinitions>
                <Border Grid.Row="0" x:Name="viewS" Width="600" Margin="-1200,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="600" />
                    </Border.RenderTransform>
                    <Grid Grid.Row="0">
                    	<Grid.Background>
                    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    			<GradientStop Color="White" Offset="0"/>
                    			<GradientStop Color="#FFE3E4E2" Offset="1"/>
                    		</LinearGradientBrush>
                    	</Grid.Background>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="65" />
                        </Grid.ColumnDefinitions>
                        <TextBox x:Name="_mTbSearch" TextChanged="MTbSearchTextChanged" Grid.Column="0" Text="{Binding SearchString, UpdateSourceTrigger=Explicit}" Margin="2,2,72,2" />
                        <Button x:Name="_mBtSearch" IsDefault="{Binding SearchString, Converter={StaticResource StringNotEmptyConv}}" Content="Search" IsEnabled="{Binding SearchString, Converter={StaticResource StringNotEmptyConv}}" 
                                Click="ButtonClick" Command="{Binding SearchCommand}" Style="{DynamicResource ButtonStyle1}" Margin="0,2,-27,2" BorderThickness="0" HorizontalAlignment="Right" Width="95" />
                        <Button x:Name="_mBtSettings" Click="_mBtSettings_Click"  Grid.Column="1" Margin="31,2,8,2" Style="{DynamicResource ButtonStyle1}">
                            <Image Source="/mmUI;component/icons/settings.png" />
                        </Button>
                    </Grid>
                </Border>
                <Border Grid.Row="0" x:Name="viewT" Width="600" Margin="0,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="600" />
                    </Border.RenderTransform>
                    <Grid Grid.Row="0">
                    	<Grid.Background>
                    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    			<GradientStop Color="White" Offset="0"/>
                    			<GradientStop Color="#FFE3E4E2" Offset="0.996"/>
                    			<GradientStop Color="#FFF1F1F1" Offset="0.591"/>
                    			<GradientStop Color="#FF0A0A0A" Offset="1"/>
                    		</LinearGradientBrush>
                    	</Grid.Background>
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition Width="0.5*"/>
                    		<ColumnDefinition Width="0.5*"/>
                    	</Grid.ColumnDefinitions>
                        <Button x:Name="_mBtJdownloaderOpen" Content="JDownloader..." Command="{Binding OpenJdownloader}" Style="{DynamicResource ButtonStyle1}" Margin="2,2,123.4,2" />
                        <StackPanel Orientation="Horizontal" Grid.Column="2">
                            <Button x:Name="_mBtFilesTubeExt" Content="Search filestube..." Command="{Binding ExecuteFilestubeExtension}" Style="{DynamicResource ButtonStyle1}" Width="156.477" Margin="2" />
                            <Button x:Name="_mBtDownloadSubs" Content="Download subtitles..." Command="{Binding DownloadSubtitles}" Style="{DynamicResource ButtonStyle1}" Width="134.357" Margin="2" />
                        </StackPanel>
                    </Grid>
                </Border>
                <Border Grid.Row="1" x:Name="view00" Width="400" Margin="-2000,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="300" />
                    </Border.RenderTransform>
                    <ListBox HorizontalContentAlignment="Stretch" ItemsSource="{Binding SearchResult}" SelectedItem="{Binding SelectedSearchResult}" BorderBrush="{x:Null}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid>
                                	<Grid.Background>
                                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                			<GradientStop Color="White" Offset="0"/>
                                			<GradientStop Color="#FFF1F1F1" Offset="0.996"/>
                                			<GradientStop Color="Black" Offset="1"/>
                                			<GradientStop Color="#FFF3F3F3" Offset="0.83"/>
                                		</LinearGradientBrush>
                                	</Grid.Background>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="30" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <Image Grid.Column="0" Source="{Binding CoverLocal}" />
                                    <Grid Grid.Column="1">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*" />
                                            <RowDefinition Height="*" />
                                        </Grid.RowDefinitions>
                                        <TextBlock Grid.Row="0" FontSize="16" Text="{Binding Title}" Padding="4,0,0,0" />
                                        <StackPanel Grid.Row="1" Orientation="Horizontal">
                                            <TextBlock FontSize="12" Text="TV series, year: " Padding="4,0,0,0" />
                                            <TextBlock FontSize="12" Text="{Binding Year}" />
                                        </StackPanel>
                                    </Grid>
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Border>
                <Border Grid.Row="1" x:Name="view0" Width="200" Margin="-1400,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="300" />
                    </Border.RenderTransform>
                    <Grid>
                    	<Grid.Background>
                    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    			<GradientStop Color="#FFE7E7E7" Offset="0"/>
                    			<GradientStop Color="#FFF9F9F9" Offset="1"/>
                    		</LinearGradientBrush>
                    	</Grid.Background>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Button Grid.Row="1" x:Name="_mBtSelect" Click="MBtSelectClick" Command="{Binding AddSelectedSearchResult}" 
                                IsEnabled="{Binding SelectedSearchResult, Converter={StaticResource NotNullConv}}" Content="Select movie series ⇨" Height="56.96" VerticalAlignment="Top" Margin="3" Style="{DynamicResource ButtonStyle1}" />
                        <Control x:Name="loading" Grid.Row="1" Template="{StaticResource loadingAnimation}"
                         Width="20" Visibility="{Binding IsSearching, Converter={StaticResource Bool2Visibility}}" Cursor="Wait" />
                    </Grid>
                </Border>
                <Border Grid.Row="1" x:Name="view1" Width="300" Margin="-900,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="300" />
                    </Border.RenderTransform>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <!--<RowDefinition Height="25" />-->
                        </Grid.RowDefinitions>
                        <ListBox Grid.Row="0" ItemsSource="{Binding Movies}" SelectedItem="{Binding SelectedMovie}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" BorderBrush="{x:Null}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <Grid x:Name="_mMainLbBack" HorizontalAlignment="Stretch" Margin="0,0,0,0" Width="Auto">
                                		<Grid.Background>
                                			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                				<GradientStop Color="WhiteSmoke" Offset="0.996"/>
                                				<GradientStop Color="White"/>
                                				<GradientStop Color="Black" Offset="1"/>
                                			</LinearGradientBrush>
                                		</Grid.Background>
                                		<Grid.RowDefinitions>
                                			<RowDefinition Height="20" />
                                			<RowDefinition Height="20" />
                                		</Grid.RowDefinitions>
                                		<Grid.ColumnDefinitions>
                                			<ColumnDefinition Width="*" />
                                			<ColumnDefinition Width="Auto" />
											<ColumnDefinition Width="20" />
                                		</Grid.ColumnDefinitions>
                                		<TextBlock Grid.Column="0" Grid.Row="0" FontSize="16" Text="{Binding Title}" />
                                		<StackPanel  Grid.Column="0" Grid.Row="1" Orientation="Horizontal">
                                			<TextBlock Text="Season: " />
                                			<TextBlock Text="{Binding Season}" />
                                			<TextBlock Text="/" />
                                			<TextBlock Text="{Binding SeasonCount}" />
                                			<TextBlock Text=", not seen: " />
                                			<TextBlock Text="{Binding NotSeenTilToday}" />
                                		</StackPanel>
                                		<Control HorizontalAlignment="Right" Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" Template="{StaticResource loadingAnimation}"
                                			Width="20" Visibility="{Binding Reloading, Converter={StaticResource Bool2Visibility}}" />
                                        <Image Margin="0,0,5.617,0" Grid.RowSpan="2" Grid.Column="1" Width="26" Height="20" Visibility="{Binding NotSeenTilToday, Converter={StaticResource MoreVisiblity}}" RenderTransformOrigin="0.5,0.5" Source="/mmUI;component/icons/star_icon.png">
                                        	<Image.RenderTransform>
                                        		<TransformGroup>
                                        			<ScaleTransform ScaleY="-1"/>
                                        			<SkewTransform/>
                                        			<RotateTransform Angle="-37.789"/>
                                        			<TranslateTransform/>
                                        		</TransformGroup>
                                        	</Image.RenderTransform>
                                        </Image>
                                	</Grid>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </Border>
                <Border Grid.Row="1" x:Name="view2" Width="300" Margin="-300,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="300" />
                    </Border.RenderTransform>
                    <Grid>
                    	<Grid.Background>
                    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    			<GradientStop Color="#FFDFE0CD" Offset="0.757"/>
                    			<GradientStop Color="White" Offset="1"/>
                    			<GradientStop Color="#FFDEDEDE"/>
                    			<GradientStop Color="#FFF5F7EF" Offset="0.091"/>
                    			<GradientStop Color="#FEE9E7D5" Offset="0.722"/>
                    		</LinearGradientBrush>
                    	</Grid.Background>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <TextBlock Margin="5,5,5,5" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" 
                                   FontWeight="Bold" Text="{Binding SelectedMovie.Title}" />

                        <Grid Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="139" />
                                <ColumnDefinition Width="161" />
                            </Grid.ColumnDefinitions>
                        	<Border Grid.Column="0" Height="200" Margin="2,2,2,2" Width="135">
                        		<Image x:Name="CoverImg" Source="{Binding SelectedMovie.CoverLocal}" />
                        	</Border>
                        	<StackPanel Margin="3,0,0,0" Grid.Column="1" Orientation="Vertical">
                        		<StackPanel Orientation="Horizontal">
                        			<TextBlock Text="Seasons: " />
                        			<TextBlock Text="{Binding SelectedMovie.SeasonCount}" />
                        		</StackPanel>
                        		<StackPanel Orientation="Horizontal">
                        			<TextBlock Text="Episodes: " />
                        			<TextBlock Text="{Binding SelectedMovie.Episodes.Count}" />
                        		</StackPanel>
                        		<StackPanel Orientation="Horizontal">
                        			<TextBlock Text="Next EP: " />
                        			<TextBlock Text="{Binding NextEpisodeAirDate}" />
                        		</StackPanel>
                        	</StackPanel>
                        </Grid>

                
                        <Button Grid.Row="1" IsEnabled="{Binding CanReloadEpisodes}" Content="Reload" Command="{Binding ReloadSelectedMovieEpisodes}" Margin="141.5,76.04,38.5,0" Style="{DynamicResource ButtonStyle1}" Height="21.96" VerticalAlignment="Top" />
                        <ComboBox IsEnabled="{Binding IsMovieSelected}" Grid.Row="1" 
                                  ItemsSource="{Binding SelectedMovie.SeasonCount, Converter={StaticResource SeasonConv}}" 
                                  SelectedIndex="{Binding SelectedMovie.Season, Converter={StaticResource One2Zero}}" Height="21.96" Margin="141,50.08,38,0" VerticalAlignment="Top" Width="120" Style="{DynamicResource ComboBoxStyle1}" />
                        <Button Grid.Row="1" IsEnabled="{Binding IsMovieSelected}" Content="Remove movie" Command="{Binding RemoveSelectedMovie}" Height="21.96" VerticalAlignment="Bottom" Margin="141.5,0,38.5,80.04" Style="{DynamicResource ButtonStyle1}" Foreground="#FF914848" />
                        <Button Content="Update all movies..." Margin="141.5,0,38.5,8" Grid.Row="5" VerticalAlignment="Bottom" Style="{DynamicResource ButtonStyle1}" ToolTip="Reloads information from web" IsEnabled="{Binding CanReloadEpisodes}" Command="{Binding ReloadAllMovies}" />
                        <Border BorderBrush="Black" BorderThickness="0" HorizontalAlignment="Left" Width="135" Grid.Row="2" Margin="2,2,2,-83" RenderTransformOrigin="0.5,0.5" Opacity="0.595">
                        	<Border.OpacityMask>
                        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        			<GradientStop Color="#00000000" Offset="0"/>
                        			<GradientStop Color="#80FFFFFF" Offset="1"/>
                        		</LinearGradientBrush>
                        	</Border.OpacityMask>
                        	<Border.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform ScaleY="-1"/>
                        			<SkewTransform/>
                        			<RotateTransform/>
                        			<TranslateTransform/>
                        		</TransformGroup>
                        	</Border.RenderTransform>
                        	<Border.Background>
                        		<VisualBrush Visual="{Binding ElementName=CoverImg}"/>
                        	</Border.Background>                     
                        </Border>
                    </Grid>
                </Border>
                <Border Grid.Row="1" x:Name="view3" Width="300" Margin="300,0,0,0">
                    <Border.RenderTransform>
                        <TranslateTransform X="300" />
                    </Border.RenderTransform>
                    <Grid>
                    	<Grid.Background>
                    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    			<GradientStop Color="#FF6E6E6E" Offset="1"/>
                    			<GradientStop Color="#FFE2E3E1"/>
                    			<GradientStop Color="#FFF1F3EC" Offset="0.074"/>
                    		</LinearGradientBrush>
                    	</Grid.Background>
                        <Grid.RowDefinitions>
                        	<RowDefinition Height="Auto" />
                        	<RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <CheckBox Grid.Row="0" Content="Select all" IsChecked="{Binding AllEpisodesSelected}" Margin="4" Background="#FFF4F4F4" Foreground="#FF919191" />
                    	<ListBox Grid.Row="1" HorizontalContentAlignment="Stretch" ItemsSource="{Binding Episodes}" SelectedItem="{Binding SelectedEpisode}" BorderBrush="{x:Null}" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}">
                    		<ListBox.ItemTemplate>
                    			<DataTemplate>
                    				<Grid>
                    					<Grid.Background>
                    						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    							<GradientStop Color="White" Offset="0"/>
                    							<GradientStop Color="Black" Offset="1"/>
                    							<GradientStop Color="White" Offset="0.543"/>
                    							<GradientStop Color="#FFF1F1F1" Offset="0.996"/>
                    						</LinearGradientBrush>
                    					</Grid.Background>
                    					<Grid.RowDefinitions>
                    						<RowDefinition Height="20" />
                    						<RowDefinition Height="20" />
                    					</Grid.RowDefinitions>
                    					<Grid.ColumnDefinitions>
                    						<ColumnDefinition Width="20" />
                    						<ColumnDefinition Width="*" />
                    					</Grid.ColumnDefinitions>
                    					<TextBlock Grid.Column="1" Grid.Row="0" FontWeight="Bold" Text="{Binding Title}" FontSize="13.333" />
                    					<StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal">
                    						<TextBlock Text="Season: " FontSize="10.667" />
                    						<TextBlock Text="{Binding Season}" FontSize="10.667" />
                    						<TextBlock Text=", Episode: " FontSize="10.667" />
                    						<TextBlock Text="{Binding EpisodeNo}" FontSize="10.667" />
                    						<TextBlock Text=", Air date: " FontSize="10.667" />
                    						<TextBlock Text="{Binding AirDate, Converter={StaticResource ShortDateConv}}" FontSize="10.667" />
                    					</StackPanel>
                    					<CheckBox Grid.Column="0" Grid.ColumnSpan="1" VerticalAlignment="Center" IsChecked="{Binding Seen}" Grid.RowSpan="2" Background="{x:Null}" BorderBrush="#FF8E8F8F" Style="{DynamicResource CheckBoxStyle1}" />
                    				</Grid>
                    			</DataTemplate>
                    		</ListBox.ItemTemplate>
                    	</ListBox>
                    </Grid>
                </Border>
                <Button IsEnabled="{Binding SliderEnabled}" Grid.Row="2" x:Name="_mBtSlider" Content="Show episodes" Click="ButtonClick1" />
            </Grid>
        </Border>
        <Border x:Name="_mLoading" Width="600">
            <Border.RenderTransform>
                <TranslateTransform />
            </Border.RenderTransform>
            <Grid>
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    	<GradientStop Color="#FFF2F7FF" Offset="0" />
                    	<GradientStop Color="#E6EAF5" Offset="0.2" />
                    	<GradientStop Color="#CFD7E2" Offset="0.677" />
                    	<GradientStop Color="#FF9B9B9B" Offset="1" />
                    </LinearGradientBrush>
                </Grid.Background>
                <StackPanel Height="400" Orientation="Horizontal" HorizontalAlignment="Center">
                    <Control x:Name="_mInitialLoadingCtrl" Template="{StaticResource loadingAnimation}"
                         Width="60" Visibility="Visible" />
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Window>
